﻿<UserControl x:Class="ViCode_LeVi.Controls.VMTabTextBoxFormatInfo"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
       xmlns:vmcontrol="clr-namespace:ViCode_LeVi.Controls"
        xmlns:vmcontrolWin="clr-namespace:ViCode_LeVi.Controls.ControlsWin"
         xmlns:toolkit="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit" >

    
   
        <DockPanel >
            <ToolBar x:Name="ToolBarOben" DockPanel.Dock="Top">

                <ComboBox x:Name="ComboBox_FontType"  SelectedItem="{Binding Path=FontText}" />
                <ComboBox x:Name="ComboBox_FontSize" SelectedItem="{Binding Path= sFontSize}"/>
                <ToggleButton x:Name="ToolStripButtonBold"  ToolTip="Bold" IsChecked="{Binding IsBold}">
                    <Image Source="/Swiss Create;component/Images/Bold.png" Stretch="None"/>
                </ToggleButton>
                <ToggleButton x:Name="ToolStripButtonItalic" ToolTip="Italic" IsChecked="{Binding IsItalic}">
                    <Image Source="/Swiss Create;component/Images/Italic.png" Stretch="None"/>
                </ToggleButton>
                <ToggleButton x:Name="ToolStripButtonUnderline"  ToolTip="Underline" IsChecked="{Binding IsUnder}">
                    <Image Source="/Swiss Create;component/Images/Underline.png" Stretch="None"/>
                </ToggleButton>
            <ToggleButton x:Name="ToolStripButtonCheckSpell"  ToolTip="Check Spell" IsChecked="{Binding IsCheckSpell}">
                <Image Source="/Swiss Create;component/Images/SpellCheck.png" Stretch="None"/>
            </ToggleButton>
            <!--<Image Source="/Swiss Create;component/Images/Textcolor.png" Stretch="None"/>-->
                <Button x:Name="ToolStripButtonTextcolor" Click="ToolStripButtonTextcolor_Click" ToolTip="Chọn màu cho text">
                <StackPanel Orientation="Horizontal">
                    <Image Source="/Swiss Create;component/Images/Textcolor.png" Stretch="None"/>
                    <Rectangle Fill="{Binding ForeColor}" Width="15" Height="15" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
                 </StackPanel>
                </Button>
                <Button x:Name="ToolStripButtonBackcolor" Click="ToolStripButtonBackcolor_Click" ToolTip="Chọn màu nền">
                    <StackPanel Orientation="Horizontal">
                    <Image Source="/Swiss Create;component/Images/Backcolor.png" Stretch="None"/>
                        <Rectangle Fill="{Binding Background}" Width="15" Height="15" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
                    </StackPanel>
                </Button>                
                <ToggleButton ToolTip="Undo" Command="ApplicationCommands.Undo" >
                <Image Source="/Swiss Create;component/Images/Undo.png" Stretch="None" Height="16"/>
            </ToggleButton>
                <ToggleButton ToolTip="Redo" Command="ApplicationCommands.Redo" >
                <Image Source="/Swiss Create;component/Images/Redo.png" Stretch="None" Height="16"/>
            </ToggleButton>
            </ToolBar>
            
            
        </DockPanel>
    
</UserControl>
